{include file="header.htm" /}
<body class="bodystyle" style="overflow-y: scroll; cursor: default; -moz-user-select: inherit;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page min-hg-c-10">
    <div class="flexigrid">
        <div class="hDiv mt20">
            <div class="hDivBox">
                <table cellspacing="0" cellpadding="0" style="width: 100%">
                    <thead>
                    <tr>
                        <th abbr="article_title" axis="col3">
                            <div class="text-l10">商品</div>
                        </th>
                        <th abbr="" axis="col4" class="w150">
                            <div class="tc">成交订单</div>
                        </th>
                        <th abbr="" axis="col6" class="w150">
                            <div class="tc">成交金额</div>
                        </th>
                        <th abbr="" axis="col6" class="w150">
                            <div class="tc">退款金额</div>
                        </th>
                        <th abbr="" axis="col5" class="w150">
                            <div class="tc">销售数量</div>
                        </th>
                        <th abbr="" axis="col5" class="w150">
                            <div class="tc">成交人数</div>
                        </th>
                    </tr>
                    </thead>
                </table>
            </div>
        </div>
        <div class="bDiv" style="height: auto;">
            <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
                <table style="width: 100%">
                    <tbody>
                    {empty name="list"}
                        <tr>
                            <td class="no-data" align="center" axis="col0" colspan="50">
                                <div class="no_row">
                                    <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
                                </div>
                            </td>
                        </tr>
                    {else/}
                        {volist name="list" id="vo"}
                        <tr>
                            <td style="width: 100%" class="">
                                <div class="flex-row">
                                    <img width="60" height="60" src="{$vo.litpic}">
                                    <div>{$vo.title}</div>
                                </div>
                            </td>
                            <td>
                                <div class="w150 tc" style="">
                                    {$vo.total_order}
                                </div>
                            </td>
                            <td>
                                <div class="w150 tc" style="">
                                    ￥{$vo.total_money}
                                </div>
                            </td>
                            <td class="">
                                <div class="w150 tc">
                                    ￥{$vo.refund_money}
                                </div>
                            </td>
                            <td>
                                <div class="w150 tc">
                                    {$vo.order_success_count}
                                </div>
                            </td>
                            <td>
                                <div class="w150 tc">
                                    {$vo.buy_users_count}
                                </div>
                            </td>
                        </tr>
                        {/volist}
                    {/empty}
                    </tbody>
                </table>
            </div>
            <div class="iDiv" style="display: none;"></div>
        </div>
        <div class="tDiv">
            <div class="tDiv2">
                <div class="fbuttonr">
                    <div class="pages">
                       {$pageStr}
                    </div>
                </div>
                <div class="fbuttonr">
                    <div class="total">
                       <h5>共有{$pager->totalRows}条,每页显示
                            <select name="pagesize" style="width: 60px;" onchange="ey_selectPagesize(this);">
                                <option {if condition="$pager->listRows == 15"} selected {/if} value="15">15</option>
                                <option {if condition="$pager->listRows == 30"} selected {/if} value="30">30</option>
                                <option {if condition="$pager->listRows == 50"} selected {/if} value="50">50</option>
                                <option {if condition="$pager->listRows == 100"} selected {/if} value="100">100</option>
                                <option {if condition="$pager->listRows == 200"} selected {/if} value="200">200</option>
                                <!-- <option {if condition="$pager->listRows == 500"} selected {/if} value="500">500</option> -->
                            </select>
                       </h5>
                    </div>
                </div>
            </div>
            <div style="clear:both"></div>
        </div>
    </div>
</div>
<script>
    $(document).ready(function(){
        // 表格行点击选中切换
        $('#flexigrid > table>tbody >tr').click(function(){
            $(this).toggleClass('trSelected');
        });

        // 点击刷新数据
        $('.fa-refresh').click(function(){
            location.href = location.href;
        });
        var parentObj = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
        //活动数据
        function relation(obj,title) {
            $.ajax({
                type : 'POST',
                url : "{:weapp_url('Seckill/Seckill/activity')}",
                data : {opt:'set', value:'', _ajax:1},
                dataType : 'json',
                success : function(res){
                    var url = $(obj).data('href');
                    var iframes = layer.open({
                        type: 2,
                        title: title,
                        id: 'relation_iframes',
                        fixed: true, //不固定
                        shadeClose: false,
                        closeBtn: 3,
                        shade: layer_shade,
                        area: ['90%', '90%'],
                        content: url,
                    });
                },
                error: function(e){
                    showErrorAlert(e.responseText);
                }
            });
        }
    });
</script>
{include file="footer.htm" /}
